package com.example.weatherserctary2.http;

import java.util.HashMap;
import java.util.Map;

import com.example.weatherserctary2.R;

public class Weather {

	private String temp; // �����¶�
	private String wind_direction; 
	private String wind_strength; 
	private String humidity; 
	private String time; 
	private String city; 
	private String date_y; 
	private String week; 
	private String weather;  
	private Future[] future;  

	private Map<String,Integer> iconMap;
	
	public Map<String,Integer> getIconMap(){
		return this.iconMap;
	}
	
	public Weather(){
		iconMap = new HashMap<String,Integer>();
		initIcon();   //初始化天气图标
	}
	
	public void initIcon(){
		iconMap.put("晴", R.drawable.qing);
		iconMap.put("阴", R.drawable.yin);
		iconMap.put("多云", R.drawable.duoyun);
		iconMap.put("阵雨", R.drawable.zhenyu);
		iconMap.put("雷阵雨", R.drawable.leizhenyu);
		iconMap.put("雷阵雨伴有冰雹", R.drawable.leizhenyubingbao);
		iconMap.put("雨夹雪", R.drawable.yujiaxue);
		iconMap.put("小雨", R.drawable.xiaoyu);
		iconMap.put("中雨", R.drawable.zhongyu);
		iconMap.put("大雨", R.drawable.dayu);
		iconMap.put("暴雨", R.drawable.baoyu);
		iconMap.put("大暴雨", R.drawable.dabaoyu);
		iconMap.put("特大暴雨", R.drawable.tedabaoyu);
		iconMap.put("阵雪", R.drawable.zhenxue);
		iconMap.put("小雪", R.drawable.xiaoxue);
		iconMap.put("中雪", R.drawable.zhongxue);
		iconMap.put("大雪", R.drawable.daxue);
		iconMap.put("暴雪", R.drawable.baoxue);
		iconMap.put("雾", R.drawable.wu);
		iconMap.put("冻雨", R.drawable.dongyu);
		iconMap.put("沙尘暴", R.drawable.shachenbao);
		iconMap.put("小雨-中雨", R.drawable.xiaoyuzhongyu);
		iconMap.put("中雨-大雨", R.drawable.zhongyudayu);
		iconMap.put("大雨-暴雨", R.drawable.dayubaoyu);
		iconMap.put("暴雨-大暴雨", R.drawable.baoyudabaoyu);
		iconMap.put("大暴雨-特大暴雨", R.drawable.dabaoyutedabaoyu);
		iconMap.put("小雪-中雪", R.drawable.xiaoxuezhongxue);
		iconMap.put("中雪-大雪", R.drawable.zhongxuedaxue);
		iconMap.put("大雪-暴雪", R.drawable.daxuebaoxue);
		iconMap.put("浮尘", R.drawable.fuchen);
		iconMap.put("扬沙", R.drawable.yangsha);
		iconMap.put("强沙尘暴", R.drawable.qiangshachenbao);
	}
	
	
	public String getTemp() {
		return temp;
	}

	public void setTemp(String temp) {
		this.temp = temp;
	}

	public String getWind_direction() {
		return wind_direction;
	}

	public void setWind_direction(String wind_direction) {
		this.wind_direction = wind_direction;
	}

	public String getWind_strength() {
		return wind_strength;
	}

	public void setWind_strength(String wind_strength) {
		this.wind_strength = wind_strength;
	}

	public String getHumidity() {
		return humidity;
	}

	public void setHumidity(String humidity) {
		this.humidity = humidity;
	}

	public String getTime() {
		return time;
	}

	public void setTime(String time) {
		this.time = time;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getDate_y() {
		return date_y;
	}

	public void setDate_y(String date_y) {
		this.date_y = date_y;
	}

	public String getWeek() {
		return week;
	}

	public void setWeek(String week) {
		this.week = week;
	}

	public String getWeather() {
		return weather;
	}

	public void setWeather(String weather) {
		this.weather = weather;
	}

	public Future[] getFuture() {
		return future;
	}

	public void setFuture(Future[] future) {
		this.future = future;
	}

}
